<?php
//Route::namespace('User')->prefix('user')->group(function (){
//
//});



Route::namespace('Shop')->prefix('self-goods')->group(function (){

    /*代售*/
    Route::get('agent')->uses('GoodsTrusteeshipController@agentRecord')->name('b_GoodsTrusteeship_agentRecord');

    Route::post('postpone')->uses('GoodsTrusteeshipController@postpone')->name('b_GoodsTrusteeship_postpone');

    Route::match(['post','get'],'agent-remove')->uses('GoodsTrusteeshipController@deleteAgent')->name('b_GoodsTrusteeship_deleteAgent');

    Route::match(['post','get'],'agent-refund')->uses('GoodsTrusteeshipController@salesRefund')->name('b_GoodsTrusteeship_salesRefund');

    Route::match(['post','get'],'selected-postpone')->uses('GoodsTrusteeshipController@batchPostpone')->name('b_GoodsTrusteeship_batchPostpone');



});

Route::namespace('Stats')->prefix('stats')->group(function (){

    Route::get('tg-stats')->uses('PlatStatsController@countTrusteeship')->name('b_PlatStats_countTrusteeship');

    Route::get('tg-chart')->uses('PlatStatsController@chartTg')->name('b_PlatStats_chartTg');
});